You can skip the braces from the if branch, the else branch, or both, for those branches that consist of a single Kotlin statement.

You can learn more about this in:
Run Expand Edit